#include "error.h"

int serrno = 0;

/*
 * 不同的错误提醒
 */
char serror_detail[][45] = {"Failed to set the information",
				"Service not available",
				"Requested mail action not taken",
				"Requested action aborted",
				"Syntax error",
				"Command not implemented",
				"Bad sequence of commands",
				"User not local",
				"Transaction failed",
				"Unknown error"};
/*
 * 获取系统错误的出错提醒
 */
void psys_error() {
	perror("Error");		
}

/*
 * 获取smtp错误的出错提醒
 */
void psmtp_error() {
	fprintf(stderr, "%s\n", serror_detail[serrno]);	
}
